<div class="panel panel-default panel-intro">
    <!-- 选项卡的标题 -->
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active">
            <a href="#info" data-toggle="tab" class="{:$auth->check('business/info/index') ? '' : 'hide'}">客户资料</a>
            </li>
            <li>
            <a href="#receive" data-toggle="tab" class="{:$auth->check('business/info/receive') ? '' : 'hide'}">申请记录</a>
            </li>
            <li>
            <a href="#visit" data-toggle="tab" class="{:$auth->check('business/info/visit') ? '' : 'hide'}">回访记录</a>
            </li>
            <li>
            <a href="#record" data-toggle="tab" class="{:$auth->check('business/info/record') ? '' : 'hide'}">消费记录</a>
            </li>
            <li>
            <a href="#order" data-toggle="tab" class="{:$auth->check('business/info/order') ? '' : 'hide'}">课程订单</a>
            </li>
            <li>
            <a href="#comment" data-toggle="tab" class="{:$auth->check('business/info/comment') ? '' : 'hide'}">评论记录</a>
            </li>
            <li>
            <a href="#commission" data-toggle="tab" class="{:$auth->check('business/info/commission') ? '' : 'hide'}">佣金提现记录</a>
            </li>
            <li>
            <a href="#coupon" data-toggle="tab" class="{:$auth->check('business/info/coupon') ? '' : 'hide'}">优惠券领取记录</a>
            </li>
        </ul>
    </div>

    <!-- 页面主体 -->
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            
            <!-- 选项卡的主体 -->
             <!-- 客户资料 -->
            <div class="tab-pane fade active in" id="info">
                <div class="panel-body newrow prindBody">
                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessNickname')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.nickname}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessMobile')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.mobile}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Email')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.email ? $row.email : '暂无邮箱'}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Gender')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.gender_text}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Money')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.money}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessSource')}:</label>
                        <div  class="col-xs-12 col-sm-6">
                            {$row.source.name ? $row.source.name : '未知来源'}
                        </div>
                    </div>
                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessDeal')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.deal_text}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessAuth')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.auth == 1 ? '已认证' : '未认证'}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Area')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.region_text}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Createtime')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.createtime|date="Y-m-d", ###}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessApply')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.admin.nickname ? $row.admin.nickname : '暂无绑定销售员'}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('BusinessParent')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            {$row.parent.nickname ? $row.parent.nickname : '暂无推荐人'}
                        </div>
                    </div>

                    <div class="col-md-4 col-xs-12 form-group">
                        <label class="control-label col-xs-12 col-sm-3">{:__('Avatar')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            <img src="{$row.avatar_text}" width="100" />
                        </div>
                    </div>
                </div>
            </div>

            <!-- 申请记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/receive') ? '' : 'hide'}" id="receive">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="RecordToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-receive-add {:$auth->check('business/receive/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="ReceiveTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-RecordEdit="{:$auth->check('business/receive/edit')}"
                        data-operate-RecordDel="{:$auth->check('business/receive/del')}"
                    >
                    </table>
                </div>
            </div>

            <!-- 回访记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/visit') ? '' : 'hide'}" id="visit">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="VisitToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-visit-add {:$auth->check('business/visit/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="VisitTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-VisitEdit="{:$auth->check('business/visit/edit')}"
                        data-operate-VisitDel="{:$auth->check('business/visit/del')}"
                    >
                    </table>
                </div>
            </div>

            <!-- 消费记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/record') ? '' : 'hide'}" id="record">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="RecordToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-record-add {:$auth->check('business/record/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="RecordTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-RecordEdit="{:$auth->check('business/record/edit')}"
                        data-operate-RecordDel="{:$auth->check('business/record/del')}"
                    >
                    </table>
                </div>
            </div>

            <!-- 课程订单 -->
            <div class="tab-pane fade {:$auth->check('business/info/order') ? '' : 'hide'}" id="order">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="OrderToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-order-add {:$auth->check('business/order/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="OrderTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-CommentEdit="{:$auth->check('business/order/edit')}"
                        data-operate-CommentDel="{:$auth->check('business/order/del')}"
                    >
                    </table>
                </div>
            </div>
            
            <!-- 评论记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/comment') ? '' : 'hide'}" id="comment">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="CommentToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-comment-add {:$auth->check('business/comment/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="CommentTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-CommentEdit="{:$auth->check('business/comment/edit')}"
                        data-operate-CommentDel="{:$auth->check('business/comment/del')}"
                    >
                    </table>
                </div>
            </div>

            <!-- 佣金提现记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/commission') ? '' : 'hide'}" id="commission">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="CommissionToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-commission-add {:$auth->check('business/commission/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="CommissionTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-CommissionEdit="{:$auth->check('business/commission/edit')}"
                        data-operate-CommissionDel="{:$auth->check('business/commission/del')}"
                    >
                    </table>
                </div>
            </div>

            <!-- 优惠券领取记录 -->
            <div class="tab-pane fade {:$auth->check('business/info/coupon') ? '' : 'hide'}" id="coupon">
                <div class="panel-body newrow prindBody">
                    <!-- 工具栏 -->
                    <div id="CouponToolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:;" class="btn btn-success btn-coupon-add {:$auth->check('business/coupon/add')?'':'hide'}">
                            <i class="fa fa-plus"></i> {:__('Add')}
                        </a>
                    </div>

                    <!-- 表格 -->
                    <table id="CouponTable" class="table table-striped table-bordered table-hover" width="100%"
                        data-operate-CouponEdit="{:$auth->check('business/coupon/edit')}"
                        data-operate-CouponDel="{:$auth->check('business/coupon/del')}"
                    >
                    </table>
                </div>
            </div>
        </div>

    </div>
</div>